<template>
  <div class="c-ibmbox">
    <img src="/admin/ibm/top.png" alt="">
    <template v-for="index in level" >
      <img :src="index == parseInt(level/2) ? '/admin/ibm/lock.png' : '/admin/ibm/normal.png'" alt="">
    </template>
    <img src="/admin/ibm/bottom.png" alt="">
  </div>
</template>
<script lang="ts">
  import { defineComponent, ref, watch } from 'vue';
  import { propTypes } from '/@/utils/propTypes';
  export default defineComponent({
    name: 'pilotLamp',
    props: {
      level: propTypes.integer
    },
    setup(props) {
      console.log(props)
    }
  })
</script>
<style lang="less" >
.c-ibmbox{
  overflow: hidden;
  width: 150px;
  margin: 0 auto;
  padding: 0;
  img{
    width: 100%;
    margin: 0;
  }
}
</style>